package com.xayy.mgt.model;

import lombok.Data;

import java.util.List;

/**
 * @author Nie
 * @version V1.0
 * @date 2023/9/7 13:39
 */
@Data
public class XmindResult {
    private String title;
    private List<XmindResult> topics;
    private String code;

    public void setTitle(String title) {
        String[] split = title.split("\\t");
        if (split.length == 2) {
            this.code = split[0];
            String replace = split[1].replace("\n", "");
            this.title = replace;

        } else {
            this.title = title;
        }
    }
}
